/*
 * Agent.java
 *
 * Created on 6 de Dezembro de 2007, 18:22
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.ontoscheduler.concepts;

import com.hp.hpl.jena.rdf.model.RDFNode;
import java.util.Iterator;
import java.util.Collection;

import com.hp.hpl.jena.ontology.OntModel;
import com.hp.hpl.jena.ontology.Individual;

import org.ontoscheduler.concepts.Concepts;

/**
 *
 * @author joaoolavo
 */
public class Agent extends Concepts {
    
    /** Creates a new instance of Agent */
    public Agent(OntModel m) {
        setConcept(m, "Agent");
    }
    
    public int setSocialCommitment(Individual ag, Collection sc){
        return addPropertyValues("inv-externalDependency", ag, sc, OBJECT_PROPERTY);
    }
    
    public int setInternalCommitment(Individual ag, Collection ic){
        return addPropertyValues("inv-inherence", ag, ic, OBJECT_PROPERTY);
    }
    
    public int setActionContribution(Individual ag, Collection ac){
        return addPropertyValues("inv-performanceOf", ag, ac, OBJECT_PROPERTY);
    }
    
    public Iterator getSocicalCommitment(Individual ag){
        return getPropertyValues("inv-externalDependency", ag);
    }
    
    public Iterator getInternalCommitment(Individual ag){
        return getPropertyValues("inv-inherence", ag);
    }

}
